package cn.wenlihelp.service;

import cn.wenlihelp.bean.Account;
import com.github.pagehelper.PageInfo;

public interface AccountService {
    PageInfo<Account> findAll(int page,int limit,Account account);

    Account findById(Long id);

    Account findByUserNameAndPassword(String userName,String password);

    boolean deleteByIds(Integer[] ids);

    boolean insert(Account account);

    boolean updateByPrimaryKey(Account account);

    void roleMapping(Integer accountId,Integer[] roleIds);
}
